﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dycox.Workflows
{
    public sealed class StartProcessOperation : TransitionOperation
    {

        protected override void PerformCore(TransitionOperationArguments args)
        {
            args.Context.Workflow.Control.ActivateProcess(args.Context.Step);
        }

        public override TransitionTypes SupportedTransitionTypes
        {
            get { return TransitionTypes.ExitStage | TransitionTypes.Normal | TransitionTypes.NoMoreStep; }
        }
    }
}
